-- Platform:
-- x86_64-pc-windows-msvc - Windows
-- x86_64-apple-darwin - macOS (Intel)
-- aarch64-apple-darwin - macOS (Apple Silicon)
-- x86_64-unknown-linux-gnu - Linux

local wezterm = require "wezterm"

local is_found = function(str, pattern)
	return string.find(str, pattern) ~= nil
end

local platform = function()
	return {
		is_win = is_found(wezterm.target_triple, "windows"),
		is_linux = is_found(wezterm.target_triple, "linux"),
		is_mac = is_found(wezterm.target_triple, "apple"),
	}
end

return platform
